package com.whmskj.xjlhbc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhbc.domain.By01MaintenanceSchedule;
import com.whmskj.xjlhbc.vo.EveryDayWbRecordVo;
import com.whmskj.xjlhbc.vo.GhWbPjRecordVo;
import com.whmskj.xjlhbc.vo.WbInfoRecordVo;
import com.whmskj.xjlhbc.vo.WbTjVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface By01MaintenanceScheduleMapper extends BaseMapper<By01MaintenanceSchedule> {

    List<WbTjVo> selectWbTjList(@Param("startTime") String startTime,
                                @Param("endTime") String endTime,
                                @Param("workshop") String workshop);

    List<GhWbPjRecordVo> selectGhWbPjRecordVoList(@Param("startTime") String startTime, @Param("endTime") String endTime);

    /**
     * 每日维修记录
     * @param time
     * @return
     */
    List<EveryDayWbRecordVo> selectEveryDayWbRecordVoList(String time);

    /**
     * 维保详情记录
     * @param id
     * @return
     */
    WbInfoRecordVo selectWbInfoRecordVo(Integer id);

    /**
     * 添加维保记录
     * @param body
     * @return
     */
    int insertWb(By01MaintenanceSchedule body);

    int updateWbById(By01MaintenanceSchedule body);
}
